import request from '@/utils/request'
// 能耗报表列表
export const getConsumptionListapip = (params) => request.get('/pio-microservice-biz/pio/energy/device/consumption/report/page/list', { params })
// 获取某企业的电机设备
export const getEquipListapi = (params) => request.get('/pio-microservice-biz/pio/energy/device/consumption/report/equip/list', { params })
// 生成数据
export const getGenerateDataapi = (params) => request.get('/pio-microservice-biz/pio/energy/device/consumption/report/generate/data', { params })
// 获取某企业的结束日期的电价
export const getElectricityapi = (params) => request.get('/pio-microservice-biz/pio/energy/device/consumption/report/electricity/price', { params })
// 新增
export const postReportAddai = data => request.post('/pio-microservice-biz/pio/energy/device/consumption/report/add', data)
// 删除
export const delReportAddai = (id) => request.post(`/pio-microservice-biz/pio/energy/device/consumption/report/delete?id=${id}`)
// 查看/修改初始化页面
export const getBaseBuapi = (id) => request.get(`/pio-microservice-biz/pio/energy/device/consumption/report/get/by/id?id=${id}`)
// 修改
export const putReportAddai = data => request.post('/pio-microservice-biz/pio/energy/device/consumption/report/update', data)
// 页面导出
export const postexportexcelapi=data=>request.post('/pio-microservice-biz/pio/energy/device/consumption/report/view/exportExcel',data,{ responseType: 'arraybuffer' ,headers: { 'Content-Type': 'application/json' }},)